# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=xmppipe
pkgver=0.14.2
pkgrel=1
pkgdesc="stdio over XMPP"
url="https://github.com/msantos/xmppipe"
arch="all"
license="ISC"
makedepends="libstrophe-dev audit-dev"
checkdepends="bats"
source="$pkgname-$pkgver.tar.gz::https://github.com/msantos/xmppipe/archive/refs/tags/$pkgver.tar.gz"
options="!check" # checks require inputting xmpp username and password in plaintext

build() {
	make
}

check() {
	make test
}

package() {
	install -Dm755 "$builddir"/xmppipe \
		"$pkgdir"/usr/bin/xmppipe
}

sha512sums="
3080b96dc533b9a9c874b6904c28e544663a3b1440c69d7d395ec5b6bdaf0ab0f9148b93db37ab458de0e16f1e3ce358b7fad0d7e561ea9fc2a751c172586456  xmppipe-0.14.2.tar.gz
"
